package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.entity.CompanyForumTopic;
import com.isunland.managesystem.entity.CompanyForumTopic.actualObject;
import com.isunland.managesystem.entity.CompanyForumType;

public class CompanyForumTopicPublishActicity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {
    CompanyForumType type = (CompanyForumType) getIntent().getSerializableExtra(
        CompanyForumListFragment.EXTRA_FORUM_TYPE);
    CompanyForumTopic.actualObject topicContent = (actualObject) getIntent().getSerializableExtra(
        CompanyForumTopicPublishFragment.EXTRA_VALUE);
    String topicEdit = getIntent().getStringExtra(CompanyForumTopicPublishFragment.REQUEST_EDIT);
    return CompanyForumTopicPublishFragment.newInstance(type, topicContent, topicEdit);
  }
}
